package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:21
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysAction implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long moduleId;

    /**
     * Attribute moduleId Be Seted Falg
     */
    private boolean moduleIdSetted = false;

    /**
    * Attribute moduleId is Null Falg
    */
    private boolean moduleIdNull = false;
    private String actionCode;

    /**
     * Attribute actionCode Be Seted Falg
     */
    private boolean actionCodeSetted = false;

    /**
    * Attribute actionCode is Null Falg
    */
    private boolean actionCodeNull = false;
    private String actionName;

    /**
     * Attribute actionName Be Seted Falg
     */
    private boolean actionNameSetted = false;

    /**
    * Attribute actionName is Null Falg
    */
    private boolean actionNameNull = false;
    private long domainId;

    /**
     * Attribute domainId Be Seted Falg
     */
    private boolean domainIdSetted = false;

    /**
    * Attribute domainId is Null Falg
    */
    private boolean domainIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String actionResource;

    /**
     * Attribute actionResource Be Seted Falg
     */
    private boolean actionResourceSetted = false;

    /**
    * Attribute actionResource is Null Falg
    */
    private boolean actionResourceNull = false;
    private String domainCode;

    /**
     * Attribute domainCode Be Seted Falg
     */
    private boolean domainCodeSetted = false;

    /**
    * Attribute domainCode is Null Falg
    */
    private boolean domainCodeNull = false;
    private String domainName;

    /**
     * Attribute domainName Be Seted Falg
     */
    private boolean domainNameSetted = false;

    /**
    * Attribute domainName is Null Falg
    */
    private boolean domainNameNull = false;
    private String moduleCode;

    /**
     * Attribute moduleCode Be Seted Falg
     */
    private boolean moduleCodeSetted = false;

    /**
    * Attribute moduleCode is Null Falg
    */
    private boolean moduleCodeNull = false;
    private String moduleName;

    /**
     * Attribute moduleName Be Seted Falg
     */
    private boolean moduleNameSetted = false;

    /**
    * Attribute moduleName is Null Falg
    */
    private boolean moduleNameNull = false;

    public SysAction() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get moduleId
         *
         * @return long
         */
    final public long getModuleId() {
        return moduleId;
    }

    /**
     * Set moduleId
     *
     * @param long
     */
    final public void setModuleId(long moduleId) {
        this.moduleId = moduleId;

        this.moduleIdSetted = true;

        this.setModuleIdNull(false);
    }

    /**
     * Get moduleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleIdSetted() {
        return this.moduleIdSetted;
    }

    /**
     * Set moduleId Null
     *
     */
    final public void setModuleIdNull() {
        this.moduleIdNull = true;
    }

    final public void setModuleIdNull(boolean aNullFlag) {
        this.moduleIdNull = aNullFlag;
    }

    final public boolean isModuleIdNull() {
        return this.moduleIdNull;
    }

    /**
         * Get actionCode
         *
         * @return String
         */
    final public String getActionCode() {
        if (isActionCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(actionCode);
        }
    }

    /**
     * Set actionCode
     *
     * @param String
     */
    final public void setActionCode(String actionCode) {
        this.actionCode = StringUtils.trim(actionCode);

        this.actionCodeSetted = true;

        this.setActionCodeNull(this.actionCode == null);
    }

    /**
     * Get actionCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isActionCodeSetted() {
        return this.actionCodeSetted;
    }

    /**
     * Set actionCode Null
     *
     */
    final public void setActionCodeNull() {
        this.actionCodeNull = true;
    }

    final public void setActionCodeNull(boolean aNullFlag) {
        this.actionCodeNull = aNullFlag;
    }

    final public boolean isActionCodeNull() {
        return this.actionCodeNull;
    }

    /**
         * Get actionName
         *
         * @return String
         */
    final public String getActionName() {
        if (isActionNameNull()) {
            return null;
        } else {
            return StringUtils.trim(actionName);
        }
    }

    /**
     * Set actionName
     *
     * @param String
     */
    final public void setActionName(String actionName) {
        this.actionName = StringUtils.trim(actionName);

        this.actionNameSetted = true;

        this.setActionNameNull(this.actionName == null);
    }

    /**
     * Get actionName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isActionNameSetted() {
        return this.actionNameSetted;
    }

    /**
     * Set actionName Null
     *
     */
    final public void setActionNameNull() {
        this.actionNameNull = true;
    }

    final public void setActionNameNull(boolean aNullFlag) {
        this.actionNameNull = aNullFlag;
    }

    final public boolean isActionNameNull() {
        return this.actionNameNull;
    }

    /**
         * Get domainId
         *
         * @return long
         */
    final public long getDomainId() {
        return domainId;
    }

    /**
     * Set domainId
     *
     * @param long
     */
    final public void setDomainId(long domainId) {
        this.domainId = domainId;

        this.domainIdSetted = true;

        this.setDomainIdNull(false);
    }

    /**
     * Get domainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIdSetted() {
        return this.domainIdSetted;
    }

    /**
     * Set domainId Null
     *
     */
    final public void setDomainIdNull() {
        this.domainIdNull = true;
    }

    final public void setDomainIdNull(boolean aNullFlag) {
        this.domainIdNull = aNullFlag;
    }

    final public boolean isDomainIdNull() {
        return this.domainIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get actionResource
         *
         * @return String
         */
    final public String getActionResource() {
        if (isActionResourceNull()) {
            return null;
        } else {
            return StringUtils.trim(actionResource);
        }
    }

    /**
     * Set actionResource
     *
     * @param String
     */
    final public void setActionResource(String actionResource) {
        this.actionResource = StringUtils.trim(actionResource);

        this.actionResourceSetted = true;

        this.setActionResourceNull(this.actionResource == null);
    }

    /**
     * Get actionResource Has Been Setted
     *
     * @return boolean
     */
    final public boolean isActionResourceSetted() {
        return this.actionResourceSetted;
    }

    /**
     * Set actionResource Null
     *
     */
    final public void setActionResourceNull() {
        this.actionResourceNull = true;
    }

    final public void setActionResourceNull(boolean aNullFlag) {
        this.actionResourceNull = aNullFlag;
    }

    final public boolean isActionResourceNull() {
        return this.actionResourceNull;
    }

    /**
         * Get domainCode
         *
         * @return String
         */
    final public String getDomainCode() {
        if (isDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(domainCode);
        }
    }

    /**
     * Set domainCode
     *
     * @param String
     */
    final public void setDomainCode(String domainCode) {
        this.domainCode = StringUtils.trim(domainCode);

        this.domainCodeSetted = true;

        this.setDomainCodeNull(this.domainCode == null);
    }

    /**
     * Get domainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainCodeSetted() {
        return this.domainCodeSetted;
    }

    /**
     * Set domainCode Null
     *
     */
    final public void setDomainCodeNull() {
        this.domainCodeNull = true;
    }

    final public void setDomainCodeNull(boolean aNullFlag) {
        this.domainCodeNull = aNullFlag;
    }

    final public boolean isDomainCodeNull() {
        return this.domainCodeNull;
    }

    /**
         * Get domainName
         *
         * @return String
         */
    final public String getDomainName() {
        if (isDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainName);
        }
    }

    /**
     * Set domainName
     *
     * @param String
     */
    final public void setDomainName(String domainName) {
        this.domainName = StringUtils.trim(domainName);

        this.domainNameSetted = true;

        this.setDomainNameNull(this.domainName == null);
    }

    /**
     * Get domainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainNameSetted() {
        return this.domainNameSetted;
    }

    /**
     * Set domainName Null
     *
     */
    final public void setDomainNameNull() {
        this.domainNameNull = true;
    }

    final public void setDomainNameNull(boolean aNullFlag) {
        this.domainNameNull = aNullFlag;
    }

    final public boolean isDomainNameNull() {
        return this.domainNameNull;
    }

    /**
         * Get moduleCode
         *
         * @return String
         */
    final public String getModuleCode() {
        if (isModuleCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(moduleCode);
        }
    }

    /**
     * Set moduleCode
     *
     * @param String
     */
    final public void setModuleCode(String moduleCode) {
        this.moduleCode = StringUtils.trim(moduleCode);

        this.moduleCodeSetted = true;

        this.setModuleCodeNull(this.moduleCode == null);
    }

    /**
     * Get moduleCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleCodeSetted() {
        return this.moduleCodeSetted;
    }

    /**
     * Set moduleCode Null
     *
     */
    final public void setModuleCodeNull() {
        this.moduleCodeNull = true;
    }

    final public void setModuleCodeNull(boolean aNullFlag) {
        this.moduleCodeNull = aNullFlag;
    }

    final public boolean isModuleCodeNull() {
        return this.moduleCodeNull;
    }

    /**
         * Get moduleName
         *
         * @return String
         */
    final public String getModuleName() {
        if (isModuleNameNull()) {
            return null;
        } else {
            return StringUtils.trim(moduleName);
        }
    }

    /**
     * Set moduleName
     *
     * @param String
     */
    final public void setModuleName(String moduleName) {
        this.moduleName = StringUtils.trim(moduleName);

        this.moduleNameSetted = true;

        this.setModuleNameNull(this.moduleName == null);
    }

    /**
     * Get moduleName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleNameSetted() {
        return this.moduleNameSetted;
    }

    /**
     * Set moduleName Null
     *
     */
    final public void setModuleNameNull() {
        this.moduleNameNull = true;
    }

    final public void setModuleNameNull(boolean aNullFlag) {
        this.moduleNameNull = aNullFlag;
    }

    final public boolean isModuleNameNull() {
        return this.moduleNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysAction) == false) {
            return false;
        }

        SysAction other = (SysAction) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("actionResource=");
        buffer.append(this.actionResource);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("moduleId=");
        buffer.append(this.moduleId);

        buffer.append("actionCode=");
        buffer.append(this.actionCode);

        buffer.append("actionName=");
        buffer.append(this.actionName);

        buffer.append("domainId=");
        buffer.append(this.domainId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("domainCode=");
        buffer.append(this.domainCode);

        buffer.append("domainName=");
        buffer.append(this.domainName);

        buffer.append("moduleCode=");
        buffer.append(this.moduleCode);

        buffer.append("moduleName=");
        buffer.append(this.moduleName);

        buffer.append("]");

        return buffer.toString();
    }
}
